from ultralytics import YOLO

model = 'D:\\data\\code\\yolov11-demo\\yolo11x.pt'



model = YOLO(model=model)

# videoPath = 'E:\\newDownload\\01.mp4'
# model.predict(source=videoPath, show=True)

webcamIndex = '0'
model.predict(source=webcamIndex, show=True)